package org.cc.test.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import org.cc.test.HelloService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Reference(
            version = "1.0.0",
            application = "${dubbo.application.id}"
    )
    private HelloService helloService;
    @RequestMapping("/test")
    public String testData() {
        return helloService.SayHello();
    }
}
